package person;

public class DeepPerson implements Cloneable {
    public String name;
    public int age;
    public int score;
    public Money money;
    //
    public DeepPerson(String name, int age, int score,int money) {
        this.name = name;
        this.age = age;
        this.score = score;
        this.money = new Money(money);
    }
    @Override
    public String toString() {
        return "DeepPerson{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                ", money=" + money +
                '}';
    }
    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
